package main.java.com.lee.juc.syncollection;

import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2022/2/15
 */
public class SynchronizedCollectionDemo {
    public static void main(String[] args) {
        Collection<String> objects = Collections.synchronizedCollection(new HashSet<>());
        objects.add("aaa");
    }
}
